]> dgit.raspbian.org Git - gnome-shell.git/commit
Disconnect from window user time notifications, only sort when mapped
authorColin Walters <walters@verbum.org>
Fri, 2 Oct 2009 19:55:55 +0000 (15:55 -0400)
committerColin Walters <walters@verbum.org>
Tue, 6 Oct 2009 16:49:43 +0000 (12:49 -0400)
commit4bdd40911ff8c42df1ab6681feb91b89fe0281f5
treeb26b710d24c759463dff26549828ce1de9076b46
parentff4ac0d02ed00712894ab25f6ecae16d6567b4a7
Disconnect from window user time notifications, only sort when mapped

Before we were badly leaking AppIcons by not disconnecting from the
window signal handlers when our actor got destroyed.  This caused
us to repeatedly re-sort the windows for each AppIcon that
had ever been displayed with obvious bad consequences.

Besides simply chaining the signals to the lifetime of the AppIcon
actor, we also only do the sorting if we're mapped.  This decreases
the amount of work to do in the not-mapped case.

https://bugzilla.gnome.org/show_bug.cgi?id=597120
js/ui/appIcon.js